package com.topteam.component.freemarker;

import java.util.Map;

public class FreeMarkerUtil {

	
	public static boolean getBoolFormPara(String key, Map params){
		if(!params.containsKey(key)){
			return false;
		}else{
			boolean f = false;
			try{
				f = Boolean.valueOf(params.get(key).toString());
			}catch(Exception e){
				//throw new TemplateException(description, env)
			}
			return f;
		}
	}
}
